﻿using System.Runtime.Serialization;
using System.Windows.Media.Media3D;
namespace GameBoard
{
    [DataContract]
    public class GridVisualFactory : BaseVisualFactory
    {
        public GridVisualFactory(GridVisualData d)
            : base(d)
        {
        }

        public override ModelVisual3D MakeVisual()
        {
            var gridViz = new GridVisual();
            gridViz.PopulateVisualData(VisualData);
            return gridViz.VisualElement;
        }
    }
}